#define _CRT_SECURE_NO_WARNINGS 1
#include"vector.hpp"
#include<string>
using namespace std;
int main()
{
	std::string a("1111111");
	zcg::vector<char>b(a.begin(), a.end());
	//zcg::vector<int>c(5, 0);
	//zcg::vector<int>d;
	//zcg::vector<int>::iterator it= d.begin();
	zcg::vector<char>f(5);
	//zcg::vector<char>e(b);
	cout << b.capacity() << endl;
	b.push_back('a');
	b.insert(b.begin(), '2');
	b.erase(b.begin());
	for (auto ch:b)
	{
		cout << ch;
	}
	cout << endl;
	b.resize(20,'b');
	for (auto ch : b)
	{
		cout << ch;
	}
	cout << endl;
	cout << b[7];
	cout << b.capacity()<<endl;
	b.swap(f);
	for (auto ch : b)
	{
		cout << ch;
	}
	cout << b.capacity() << endl;

}